import request from '@/utils/request'

export function getAll(data) {
  if (data == null) {
    data = {}
  }
  return request({
    url: '/noticeManagement/getAll',
    method: 'post',
    data,
  })
}

export function getList(data) {
  return request({
    url: '/noticeManagement/getList',
    method: 'post',
    data,
  })
}

export function doEdit(data) {
  return request({
    url: '/noticeManagement/doEdit',
    method: 'post',
    data,
  })
}
export function doAdd(data) {
  return request({
    url: '/noticeManagement/doAdd',
    method: 'post',
    data,
  })
}

export function doDelete(data) {
  return request({
    url: '/noticeManagement/doDelete',
    method: 'post',
    data,
  })
}
